package inet.app.controller.database;

import android.content.Context;

public class DatabaseManager {
	
	private static DatabaseManager instance;
	private DaoKQGiaiXS mDaoKQGXS;
	private DaoKQGiaiXSDT mDaoKQGXSDT;
	private DaoKQGiaiRegion mDaoKQXSRegion;
	private DaoSomo mDaoSomo;
	private DaoTinhSc mDaoTinhSC;

	public DatabaseManager(Context context) {
		mDaoKQGXS = new DaoKQGiaiXS(context);
		mDaoKQGXSDT = new DaoKQGiaiXSDT(context);
		mDaoKQXSRegion = new DaoKQGiaiRegion(context);
		mDaoSomo = new DaoSomo(context);
		mDaoTinhSC = new DaoTinhSc(context);
	}

	public static DatabaseManager instance(Context context) {
		if (instance == null) {
			instance = new DatabaseManager(context);
		}
		return instance;
	}
	
	public DaoKQGiaiXS getDaoKQGiaiXS() {
		return mDaoKQGXS;
	}
	
	public DaoKQGiaiXSDT getDaoKqGiaiXSDT() {
		return mDaoKQGXSDT;
	}
	
	public DaoKQGiaiRegion getDaoKqXSRegion() {
		return mDaoKQXSRegion;
	}
	
	public DaoSomo getDaoSomo() {
		return mDaoSomo;
	}
	
	public DaoTinhSc getDaoTinhSc() {
		return mDaoTinhSC;
	}

}